package com.strelitzia.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @create 2023/12/14 9:23
 */

@Data
@NoArgsConstructor
@AllArgsConstructor
public class ResultVo {
    // 状态码
    private Integer code = 0;
    // 状态消息
    private String msg = "success";
    // 状态数据
    private Object data;

    public ResultVo(Object data) {
        this.data = data;
    }

    public ResultVo(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
